package service

import (
	"errors"
	"github.com/cn-ygf/go-admin/internal/modular/system/dao"
	"github.com/cn-ygf/go-admin/pkg/db"
	"github.com/cn-ygf/go-admin/pkg/log"
)

var (
	systemLog     = log.NamedLogger("SystemService")
	DatabaseError = errors.New("服务器出现错误，请联系管理员")
	RedisError    = errors.New("服务器出现错误，请联系管理员")
	ServerError   = errors.New("服务器出现错误，请联系管理员")
)

func Load() {
	dao.SetDefault(db.Db())
}
